# 这里主要是lifedata的数据

ALLOW_VIDEO_EXTENSIONS=['mkv','mp4']
ALLOW_IMG_EXTENSIONS=['jpg','jpeg','png']
# 文件获取API配置
SEND_DIR='http://localhost:8001/index/blog/life_data/send_file'

# 音频响应
VIDEO_MIME_TYPES = { #视频响应头库
    ".mp4": "video/mp4",
    ".avi": "video/x-msvideo",
    ".mkv": "video/x-matroska",
    ".webm": "video/webm",
    # 添加更多格式...
}

# content_type = VIDEO_MIME_TYPES.get('.mp4',"application/octet-stream")
# 如果没有就用后面的替代



# 文件保存位置
VIDEO_SAVE_PATH = 'user_resource/video'
IMAGE_SAVE_PATH= 'user_resource/image'

# 用户日期使用 ，日期缩写转换
WEEKDAY_ABBREVIATION={
    "周一":'mon', "周二":'tue', "周三":'wed', "周四":'thu', "周五":'fri', "周六":'sat', "周日":'sun'
}
WEEKDAY_=['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun']


WEEKDAY_SQL={
    "mon":'user_time_behavior.mon', "tue":'user_time_behavior.tue', "wed":'user_time_behavior.wed', "thu":'user_time_behavior.thu', "fri":'user_time_behavior.fri', "sat":'user_time_behavior.sat', "sun":'user_time_behavior.sun'
}
TIME_SPAN={
    '0~4':'fn1','5~9':'fn2','10~14':'fn3','15~19':'fn4','20~24':'fn5'
}
SPAN_SL={'fn1':'0~4','fn2':'5~9','fn3':'10~14','fn4':'15~19','fn5':'20~24'}
SPAN_SELECT=['fn1','fn2','fn3','fn4','fn5']

# 用户生活记录
LIFE_KIND_DEAL=['k_default','k_life','k_food','k_diary']
LIFE_KIND_DEAL_={'default':'k_default','life':'k_life','food':'k_food','diary':'k_diary'}

# lifedata每次获取长度
LIFEDATA_REQUEST_LENGTH=10